Added documentation about how to use the unit test runner.
[adiumx.git] / Plugins / Purple Service / PurpleCommon.h
blob4fc5933795ce02567a72a22377dafd2f7517f1ee
1 /*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #ifdef DEBUG_BUILD
18 //Extensive debug logging is always on for a debug build
19 #define PURPLE_DEBUG TRUE
20 #else
21 //Extensive debug logging may be preferentially turned on for Purple for a non-debug build
22 #define PURPLE_DEBUG FALSE
23 #endif
25 //#define MEANWHILE_NOT_AVAILABLE
27 //Purple includes
28 #include <Libpurple/libpurple.h>
31 #define PURPLE_ORPHANS_GROUP_NAME "__AdiumOrphansUE9FHUE7I" //A group name no sane user would have
33 //Events we care about explicitly via signals
34 typedef enum
36 PURPLE_BUDDY_NONE = 0x00, /**< No events. */
37 PURPLE_BUDDY_SIGNON = 0x01, /**< The buddy signed on. */
38 PURPLE_BUDDY_SIGNOFF = 0x02, /**< The buddy signed off. */
39 PURPLE_BUDDY_INFO_UPDATED = 0x10, /**< The buddy's information (profile) changed. */
40 PURPLE_BUDDY_ICON = 0x40, /**< The buddy's icon changed. */
41 PURPLE_BUDDY_MISCELLANEOUS = 0x80, /**< The buddy's service-specific miscalleneous info changed. */
42 PURPLE_BUDDY_SIGNON_TIME = 0x11, /**< The buddy's signon time changed. */
43 PURPLE_BUDDY_EVIL = 0x12, /**< The buddy's warning level changed. */
44 PURPLE_BUDDY_DIRECTIM_CONNECTED = 0x14, /**< Connected to the buddy via DirectIM. */
45 PURPLE_BUDDY_DIRECTIM_DISCONNECTED = 0x18, /**< Disconnected from the buddy via DirectIM. */
46 PURPLE_BUDDY_NAME = 0x20 /**<Buddy name (UID) changed. */
48 } PurpleBuddyEvent;